package com.miot.im.listener;

import com.miot.im.netty.vsp.VspProxy;

public class TestMain {

	// //测试服务器信息
	public static final String TEST_URL = "ct.51miaomiao.com:80";
	public static final String TEST_RS = "ct.51miaomiao.com";
	public static final String TEST_USERNAME = "admin_account_0832_dev";// 见账户.txt文档
	public static final String TEST_pwd = "bnyzfucngi";// 见账户.txt文档

	// 生产服务器信息
	public static final String PRODUCTION_URL = "www.51miaomiao.com:80";
	public static final String PRODUCTION_RS = "www.51miaomiao.com";
	public static final String PRODUCTION_USENAME = "admin_account_0832";// 此处的生产服务器地址等待测试服务器功能都完成再分配
	public static final String PRODUCTION_pwd = "nbzpihowqh";// 此处的生产服务器地址等待测试服务器功能都完成再分配

	public static final String modelId = "";// 见账户.txt文档
	static final byte[] syn = new byte[0];

	public static void main(String[] args) {
		String username = PRODUCTION_USENAME;
		String pwd = PRODUCTION_pwd;
		if (username == null || username.equals("")) {
			System.out.println("username is null.");
			return;
		}
		if (pwd == null || pwd.equals("")) {
			System.out.println("pwd is null.");
			return;
		}
		VspProxy.getInstance().connect(PRODUCTION_RS, (short) 28001,
				username, pwd, new TestMessageListener(), PRODUCTION_URL);

		VspProxy instance = VspProxy.getInstance();

        //String a = instance.getPuInfo(03220313402, username);
        //String a = instance.getPuInfo(03220832401, username);    puId:1426244


		//String a = VspProxy.getInstance().getPagingModelPus("03220832401", username, 0);
        //System.out.println(a);

		String aaaa = instance.getPuInfo(1426244, username);
        String b = VspProxy.getInstance().getPuInfo(1426244,username);
        System.out.println(b);

		VspProxy.getInstance().sendUartData(1426244,"F1F1010100027E");
//		String message = instance.getPagingModelPus("com.thrid.app.operate0832.siolcqhk", username, 0);
//
//		System.out.println(message);
	}

}
